<?php
/**
 * This file is part of webman.
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the MIT-LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author    walkor<walkor@workerman.net>
 * @copyright walkor<walkor@workerman.net>
 * @link      http://www.workerman.net/
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */

use Webman\Route;

Route::any('/test_push', [app\controller\Test::class,'test']);
Route::any('/test_callback_url', [app\controller\Test::class,'test_callback_url']);
Route::any('/add_token_infos', [app\controller\Test::class,'add_token_infos']);
Route::any('/clientParams', [app\controller\Test::class,'clientParams']);
Route::any('/config', [app\controller\Test::class,'config']);
Route::any('/push_html', [app\controller\Index::class,'push_html']);
Route::any('/download_token', [app\controller\Test::class,'download_token']);
Route::any('/download_token/progress', [app\controller\Test::class,'download_progress']);
Route::any('/test_download', [app\controller\Test::class,'test_download']);
Route::any('/oss/download_oss_callback', [app\controller\Oss::class,'download_oss_callback']);
Route::any('/oss/request_udid_oss_callback', [app\controller\Oss::class,'request_udid_oss_callback']);
Route::any('/oss/test', [app\controller\Oss::class,'test']);
Route::group('/api', function () {
    Route::any('/tokens/store', [app\controller\Token::class,'store']);
    Route::any('/message/messageClick', [app\controller\Pushes::class,'messageClick']);
    Route::any('/message/messageShow', [app\controller\Pushes::class,'messageStatus']);
    Route::any('/package/updateConfig', [app\controller\Token::class,'updateConfig']);
})->middleware([
    app\middleware\SignMiddleware::class,/**/
]);

Route::group('/api', function () {
    Route::any('/push', [app\controller\Pushes::class,'batch_push']);
    Route::post('/batch_push', [app\controller\Pushes::class,'batch_push']);

})->middleware([
    app\middleware\GameSignMiddleware::class,/* 研发推送*/
]);

Route::group('/api', function () {
    Route::any('/insidePush', [app\controller\Pushes::class,'insidePush']);
    Route::post('/pushSdk', [app\controller\Pushes::class,'pushSdk']);
    Route::post('/reCall', [app\controller\Pushes::class,'reCall']);
    Route::any('/getFireBaseMessaging', [app\controller\Statistics::class,'getFireBaseMessaging']);
})->middleware([
    app\middleware\SignMiddleware::class,/* 研发推送*/
]);






